import java.io.File;
import java.io.IOException;

import org.apache.commons.io.FileUtils;


/**
 * 
 */

/**
 * @author wutianyi
 *
 */
public class DeleteSvn {
	
	private static void deleteSvn(File file) {
		if(file.getName().equals(".svn")) {
			try {
				FileUtils.deleteDirectory(file);
			}catch(IOException e) {
				e.printStackTrace();
			}
		}else if(file.isDirectory()) {
			File[] files = file.listFiles();
			for(File f : files) {
				deleteSvn(f);
			}
		}
	}
	
	public static void main(String[] args) {

		String path = "G:\\test";
		File file = new File(path);
		deleteSvn(file);
		System.out.println("tet");
	}
}
